import {request} from '@/until/request'

 export function getLogin(data){//获取登录的数据

  return request({
    url:"/login?username="+data.username+"&password="+data.password,
    method:'post',
    data:data,
    username:data.username,
    password:data.password
  })
}
 export function register(data){//获取注册的数据
    return request({
      url:'/user/register',
      method:'post',
      data:data
    })
  }